#include <iostream>
#include <cctype>
using namespace std;
void upper(char *str)
{
	char *p=str;
	while(!isalpha(*p))
		p++;
	(*p)-=32;
	p++;
	while((*p)!='\0')
	{
		if((*p)==' ')
		{
			p++;
			(*p)-=32;
		}
		p++;
	}
}
int main()
{
	char *str=new char[50];
	cin.get(str,50);
	upper(str);
	cout<<str<<endl;
	delete str;
	return 0;
}